package DBLayer;
import java.util.ArrayList;

import modelLayer.*;

//interface to the Product class

public interface IFDBProduct {
	//get all products
	public ArrayList<Product> getAllProducts(boolean retriveAssociation);
	//get a product with productId
	public Product findProductId(int productId, boolean retriveAssociation);
	//get a product with name
	public Product findProduct(String name, boolean retriveAssociation);
	//insert a new product
	public int insertProduct(Product prod);
	//update info for a product
	public int updateProduct(Product prod);
	public Product searchProductId(int productId, boolean b);
}
